<div id="main-content" class="box border grey ">
    <div class="box-title">
        我的组织{{organization?'>>'+organization.screenName:''}}
        <div class="tools">
            <button class="btn btn-xs btn-success" ng-click="joinInOrganization()">
                选择组织加入
            </button>
        </div>
    </div>
    <div class="box-body mainbox">
        <div class="box border oneIn3 inline-block margin-{{$index%3==0?'left':$index%3==1?'lr':'right'}}-p1" ng-repeat="item in allOrgs">
            <div class="box-title">
                {{item.screenName}}
                <div class="tools">
                    <button class="btn btn-xs btn-success" ng-show="!organization||organization.id!=item.id" ng-click="changeOrg(item)">
                        进入组织
                    </button>
                    <button class="btn btn-xs btn-warning" ng-show="organization&&organization.id==item.id" ng-click="exitManageOrg()">
                        取消查看组织
                    </button>
                    <button class="btn btn-xs btn-info" ng-show="organization&&organization.id!=item.id&&role==-1" ng-click="makeFriend(item.id)">
                        加为好友
                    </button>
                    <button class="btn btn-xs btn-danger" ng-click="exitOrg()">
                        退出组织
                    </button>
                </div>
            </div>
            <div class="box-body">
                组织名片在这里
            </div>
        </div>
    </div>
</div>
